import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('@/views/tabbar'),
    children: [
      {
        path: '/',
        name: 'home',
        component: () => import('@/views/home/'),
        children: [
          {
            path: '',
            name: 'home-1',
            component: () => import('@/views/home/systemrecomm'),
            meta: { keepAlive: true }
          }
        ]
      },
      {
        path: '/my',
        name: 'my',
        component: () => import('@/views/my/')
      }
    ]
  },
  {
    path: '/scenic/:scenicId',
    name: 'scenicDetial',
    component: () => import('@/views/scenicdetail'),
    props: true
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
